import axios from 'axios'

const request = axios.create({
  timeout: 3600,
  // baseURL: 'http://localhost:8080/api/v1/'
})

request.interceptors.request.use(config => {
  return config
}, error => {
  return Promise.reject(error)
})

request.interceptors.response.use(res => {
  return res.data
}, error => {
  return Promise.reject(error)
})

export default request
